package com.eng.carro.services;

import java.io.Serializable;
import java.util.List;

public interface BaseService<T, ID extends Serializable> {
  
  T findById(ID id);  
  
  List<T> findAll();  

  List<T> findByExample(T exampleInstance);  

  T makePersistent(T entity);  

  T makeUpdate(T entity);
  
  void delete(T entity);  
  
}
